button: Remove _get_event_window
authorTimm Bäder <mail@baedert.org>
Sat, 5 Nov 2016 07:39:10 +0000 (08:39 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 5 Nov 2016 10:56:36 +0000 (11:56 +0100)
docs/reference/gtk/gtk4-sections.txt
gtk/gtkbutton.c
gtk/gtkbutton.h
gtk/gtkmodelbutton.c

index b28f2095303915d4b08fe237ffbf3800ffbd2f25..37819560f62fcefd33ca5f9e1b64105e27b1af62 100644 (file)
@@ -535,7 +535,6 @@ gtk_button_set_image_position
 gtk_button_get_image_position
 gtk_button_set_always_show_image
 gtk_button_get_always_show_image
-gtk_button_get_event_window
 
 <SUBSECTION Standard>
 GTK_BUTTON
index 6e3734ed85f789a36a4ede68abae80c604ad0e51..62b71090caec05cb4c50ffafdfe1fe08ca54fce6 100644 (file)
@@ -1315,25 +1315,6 @@ gtk_button_grab_notify (GtkWidget *widget,
     gtk_button_do_release (button, FALSE);
 }
 
-/**
- * gtk_button_get_event_window:
- * @button: a #GtkButton
- *
- * Returns the button’s event window if it is realized, %NULL otherwise.
- * This function should be rarely needed.
- *
- * Returns: (transfer none): @button’s event window.
- *
- * Since: 2.22
- */
-GdkWindow*
-gtk_button_get_event_window (GtkButton *button)
-{
-  g_return_val_if_fail (GTK_IS_BUTTON (button), NULL);
-
-  return button->priv->event_window;
-}
-
 /**
  * gtk_button_set_icon_name:
  * @button: A #GtkButton
index b1567de54555cb3bd7a025bc6a18836176c3cbd6..d62c49c380b661e4c111fbf55c01725ecbe0781a 100644 (file)
@@ -112,9 +112,6 @@ void                  gtk_button_set_use_underline  (GtkButton      *button,
 GDK_AVAILABLE_IN_ALL
 gboolean              gtk_button_get_use_underline  (GtkButton      *button);
 
-GDK_AVAILABLE_IN_ALL
-GdkWindow*            gtk_button_get_event_window   (GtkButton      *button);
-
 GDK_AVAILABLE_IN_3_90
 void                  gtk_button_set_icon_name      (GtkButton      *button,
                                                      const char     *icon_name);
index 1f128856768f55d892565a7575e6357d74084f73..26b647c7f3f6b72d9f918a7f8e55b880da54c6e7 100644 (file)
@@ -888,7 +888,7 @@ gtk_model_button_allocate (GtkCssGadget        *gadget,
       GtkAllocation border_allocation;
       gtk_css_gadget_get_border_allocation (gadget, &border_allocation, NULL);
 
-      gdk_window_move_resize (gtk_button_get_event_window (GTK_BUTTON (widget)),
+      gdk_window_move_resize (GTK_BUTTON (widget)->priv->event_window,
                               border_allocation.x,
                               border_allocation.y,
                               border_allocation.width,